package com.itc.bpm.vo;

import com.fasterxml.jackson.databind.node.ObjectNode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("提交任务信息")
public class BpmUserTaskVo implements Serializable {
    @NotNull(message = "任务id 不能为空")
    @ApiModelProperty("任务id")
    private String taskId;
    @NotNull(message = "流程实例 不能为空")
    @ApiModelProperty("流程实例id")
    private String processInstanceId;
    @NotNull(message = "操作类型不能为空")
    @ApiModelProperty("0 保存 1 提交")
    private Integer type;
    @ApiModelProperty(value = "表单编码")
    private String formCode;
    @ApiModelProperty(value = "表单id")
    private String formId;
    @ApiModelProperty(value = "业务记录id")
    private Long serviceId;
    @ApiModelProperty("表单数据")
    private ObjectNode data;
}
